package com.yubest.seataorder.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "spring-cloud-alibaba-seata-stock")
public interface StockServiceFeign {

    @PostMapping(value = "/stock/sub")
    Boolean sub(@RequestParam("skuId") Integer skuId, @RequestParam("stock") Integer stock);
}
